﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GISEntity;
namespace ClientApplication.DTO
{
    public class GDP
    {
        public int Id { get; set; }
        public string CityName { get; set; }
        public decimal GDPValue { get; set; }
        public int Time { get; set; }
        /// <summary>
        /// 把this存到数据库中
        /// </summary>
        public GISEntity.GDP getDatabaseGDP()
        {

            //构造GISEntity中的GDPs对象
            GISEntity.GDP gdp = new GISEntity.GDP();
            gdp.TIME = new DateTime(Time,12,30);
            gdp.GDPVALUE = GDPValue;
            gdp.CITYNAME = CityName;
            return gdp;
        }
    }
}
